package com.his.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 挂号费用表
 * @TableName dzm_his_registeredfee
 */
public class DzmHisRegisteredfee implements Serializable {
    /**
     * 
     */
    private Integer regId;

    /**
     * 用户id
     */
    private Integer mid;

    /**
     * 公司ID
     */
    private Integer companyId;

    /**
     * 挂号费用名称
     */
    private String registeredfeeName;

    /**
     * 金额
     */
    private BigDecimal registeredfeeFee;

    /**
     * 子费用总数
     */
    private BigDecimal registeredfeeSubFee;

    /**
     * 挂号费用总金额
     */
    private BigDecimal registeredfeeAggregateAmount;

    /**
     * 子费用数量
     */
    private Integer numberofsub;

    /**
     * 创建时间
     */
    private String createTime;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getRegId() {
        return regId;
    }

    /**
     * 
     */
    public void setRegId(Integer regId) {
        this.regId = regId;
    }

    /**
     * 用户id
     */
    public Integer getMid() {
        return mid;
    }

    /**
     * 用户id
     */
    public void setMid(Integer mid) {
        this.mid = mid;
    }

    /**
     * 公司ID
     */
    public Integer getCompanyId() {
        return companyId;
    }

    /**
     * 公司ID
     */
    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    /**
     * 挂号费用名称
     */
    public String getRegisteredfeeName() {
        return registeredfeeName;
    }

    /**
     * 挂号费用名称
     */
    public void setRegisteredfeeName(String registeredfeeName) {
        this.registeredfeeName = registeredfeeName;
    }

    /**
     * 金额
     */
    public BigDecimal getRegisteredfeeFee() {
        return registeredfeeFee;
    }

    /**
     * 金额
     */
    public void setRegisteredfeeFee(BigDecimal registeredfeeFee) {
        this.registeredfeeFee = registeredfeeFee;
    }

    /**
     * 子费用总数
     */
    public BigDecimal getRegisteredfeeSubFee() {
        return registeredfeeSubFee;
    }

    /**
     * 子费用总数
     */
    public void setRegisteredfeeSubFee(BigDecimal registeredfeeSubFee) {
        this.registeredfeeSubFee = registeredfeeSubFee;
    }

    /**
     * 挂号费用总金额
     */
    public BigDecimal getRegisteredfeeAggregateAmount() {
        return registeredfeeAggregateAmount;
    }

    /**
     * 挂号费用总金额
     */
    public void setRegisteredfeeAggregateAmount(BigDecimal registeredfeeAggregateAmount) {
        this.registeredfeeAggregateAmount = registeredfeeAggregateAmount;
    }

    /**
     * 子费用数量
     */
    public Integer getNumberofsub() {
        return numberofsub;
    }

    /**
     * 子费用数量
     */
    public void setNumberofsub(Integer numberofsub) {
        this.numberofsub = numberofsub;
    }

    /**
     * 创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisRegisteredfee other = (DzmHisRegisteredfee) that;
        return (this.getRegId() == null ? other.getRegId() == null : this.getRegId().equals(other.getRegId()))
            && (this.getMid() == null ? other.getMid() == null : this.getMid().equals(other.getMid()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getRegisteredfeeName() == null ? other.getRegisteredfeeName() == null : this.getRegisteredfeeName().equals(other.getRegisteredfeeName()))
            && (this.getRegisteredfeeFee() == null ? other.getRegisteredfeeFee() == null : this.getRegisteredfeeFee().equals(other.getRegisteredfeeFee()))
            && (this.getRegisteredfeeSubFee() == null ? other.getRegisteredfeeSubFee() == null : this.getRegisteredfeeSubFee().equals(other.getRegisteredfeeSubFee()))
            && (this.getRegisteredfeeAggregateAmount() == null ? other.getRegisteredfeeAggregateAmount() == null : this.getRegisteredfeeAggregateAmount().equals(other.getRegisteredfeeAggregateAmount()))
            && (this.getNumberofsub() == null ? other.getNumberofsub() == null : this.getNumberofsub().equals(other.getNumberofsub()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRegId() == null) ? 0 : getRegId().hashCode());
        result = prime * result + ((getMid() == null) ? 0 : getMid().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getRegisteredfeeName() == null) ? 0 : getRegisteredfeeName().hashCode());
        result = prime * result + ((getRegisteredfeeFee() == null) ? 0 : getRegisteredfeeFee().hashCode());
        result = prime * result + ((getRegisteredfeeSubFee() == null) ? 0 : getRegisteredfeeSubFee().hashCode());
        result = prime * result + ((getRegisteredfeeAggregateAmount() == null) ? 0 : getRegisteredfeeAggregateAmount().hashCode());
        result = prime * result + ((getNumberofsub() == null) ? 0 : getNumberofsub().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", regId=").append(regId);
        sb.append(", mid=").append(mid);
        sb.append(", companyId=").append(companyId);
        sb.append(", registeredfeeName=").append(registeredfeeName);
        sb.append(", registeredfeeFee=").append(registeredfeeFee);
        sb.append(", registeredfeeSubFee=").append(registeredfeeSubFee);
        sb.append(", registeredfeeAggregateAmount=").append(registeredfeeAggregateAmount);
        sb.append(", numberofsub=").append(numberofsub);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}